#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int main()
{
    int N = 0;
    scanf("%d", &N);
    int count = 0;
    for (int i = 1; i <= N; i++)
    {
        if (i % 2 == 0)
        {
            count++;
        }
    }
    int r = N - count;
    printf("%d %d\n", r, count);

    return 0;
}